package com.fr.web;

import com.fr.web.core.WebUtils;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.util.Enumeration;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class TestProcessor
  implements Processor
{
  public void dealWithOperation(HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse)
  {
    Enumeration localEnumeration;
    try
    {
      localEnumeration = paramHttpServletRequest.getParameterNames();
      while (localEnumeration.hasMoreElements())
      {
        System.out.print("ParaName: " + localEnumeration.nextElement());
        System.out.println("ParaValue: " + paramHttpServletRequest.getParameter(localEnumeration.nextElement().toString()));
      }
      PrintWriter localPrintWriter = WebUtils.createPrintWriter(paramHttpServletResponse);
      localPrintWriter.println("OK");
      localPrintWriter.flush();
      localPrintWriter.close();
      System.out.println("TestProcessor is executed.");
    }
    catch (Exception localException)
    {
      localException.printStackTrace();
    }
  }
}